<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="ui" tagdir="/WEB-INF/tags/UI"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html>
<head>
<ui:baseHeader title="个人中心"></ui:baseHeader>
<link href="<%=request.getContextPath()%>/imagearea/css/imgareaselect-animated.css" rel="stylesheet">
</head>
<body>
	<ui:navigation index="6" />
	<div class="container">
		<div class="row">
			<div class="span2">
				<jsp:include page="/WEB-INF/personal/article/articalnav.jsp" />
			</div>
			<div class="span10" id="article-content">
				<div>
					<div class="page-header" style="margin: 0 0 18px 0;">
						<h4>文章列表</h4>
					</div>
					<ul class="content-list">
						<c:forEach var="entity" items="${list.result}" varStatus="status">
							<li class="list-content">
								<div class="article-header">
									<h4>
										<a href="<%=request.getContextPath()%>/article/${entity.aid}.xhtml">${entity.title}</a>
									</h4>
								</div>
								<div class="article-header-widget">
									<p>
										<label>博客分类：</label>${entity.type.name}
									</p>
									<p>
										<c:forEach items="${entity.tags}" var="tag">
											<span class="label label-info">${tag.name}</span>
										</c:forEach>
									</p>
								</div>
								<div class="article-body">
									<p>${entity.brief}</p>
								</div>
								<div class="article-footer">
									<span> <label>创建时间：</label> <spring:eval expression="entity.create_date"></spring:eval>
									</span> <span> <label>浏览次数：</label> 0
									</span> <span> <label>评论：</label> (0)
									</span> <span> <label>分类：</label>${(empty entity.bar.name)?"未分类":entity.bar.name}
									</span>
								</div>
							<li>
						</c:forEach>
					</ul>
				</div>
				<div class="row">
					<div class="span7 pagination pagination-right">
						<ui:pagination url="${url}" totalPage="${list.totalPages}" pageNo="${list.p}"></ui:pagination>
					</div>
					<div class="span3 pagination">
						<form class="form-horizontal" method="get">
							<fieldset>
								<input type="hidden" name="type" value="${list.type}">
								<div class="control-group">
									<label style="min-width: 90px" class="control-label">共 ${list.totalPages} 页,跳转到</label>
									<div class="controls" style="margin-left: 95px">
										<div class="input-append">
											<input class="span2" name="p" size="16" type="text" style="width: 39px; height: 26px;" /><button style="padding: 8px" class="btn" type="submit">前往</button>
										</div>
									</div>
								</div>
							</fieldset>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<ui:baseFooter />
</body>
</html>

